package com.yeexun.mapper;

import com.yeexun.domain.User;

/**
 * @author rookie
 */
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    /**
     * 添加一个用户
     * @param user
     */
    void insert(User user);

    /**
     * 根据openid查询
     * @param openId
     * @return
     */
    User selectByOpenId(String openId);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    User selectByPrimaryKey(Integer id);

    int insertSelective(User record);



    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}